from django.conf.urls import patterns, include, url
import safeinside.views


# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'safeinside.views.home', name='home'),
    # url(r'^safeinside/', include('safeinside.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    url(r'^$', safeinside.views.hello),
    url(r'^hello/$', safeinside.views.hello),
    url(r'^objects_list/$', safeinside.views.objectsList),
    url(r'^objects_list/(all)/$', safeinside.views.objectsList),
    url(r'^objects_list/(normal)/$', safeinside.views.objectsList),
    url(r'^objects_list/(test)/$', safeinside.views.objectsList),
    url(r'^objects_list/(disabled)/$', safeinside.views.objectsList),
    url(r'^objects_list/(enabled)/$', safeinside.views.objectsList),
    url(r'^objects_online_offline/(normal_standalone)/$', safeinside.views.objectsOnlineOffline),
    url(r'^objects_online_offline/(normal)/$', safeinside.views.objectsOnlineOffline),
    url(r'^object_info/(?P<region>.+)/(?P<targetid>\d+)/$', safeinside.views.objectInfo),
    url(r'^object_photos/(?P<region>.+)/(?P<targetid>\d+)/$', safeinside.views.objectPhotos),
    url(r'^object_create/$', safeinside.views.objectCreate),
    url(r'^object_create/(?P<mac>\d+)/$', safeinside.views.objectCreate),
    url(r'^object_modify/$', safeinside.views.objectModify),
    
    url(r'^objects_notregistered/$', safeinside.views.getUnregisteredObjects),
    url(r'^objects_count_events_by_type/(normal_standalone)/$', safeinside.views.objectsCountEventsByType),
    url(r'^objects_count_events_by_type/(normal)/$', safeinside.views.objectsCountEventsByType),

    url(r'^object_count_events_by_type/(normal)/(\d*)/$', safeinside.views.objectCountEventsByType),
    url(r'^object_count_events_by_type/(normal_standalone)/(\d*)/$', safeinside.views.objectCountEventsByType),
    url(r'^one_object_login/$', safeinside.views.oneObjectLogin),
    url(r'^one_object/$', safeinside.views.oneObject),
)
